package se.lth.axisandroidcam.client.widget;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.widget.ImageView;

public class TextImageView extends ImageView {

	private String text = "";
		
	public TextImageView(Context context) {
		super(context);
	}
	
	public void setText(String text){
		this.text = text;
	}
	
	
	@Override 
	protected void onDraw(Canvas canvas){
		super.onDraw(canvas);
		Paint white = new Paint(Paint.ANTI_ALIAS_FLAG);
		white.setColor(Color.WHITE);
		white.setTextSize(16.0F);
		
		canvas.drawText(text, 65, super.getHeight()-15, white);
	}

}
